<?php

class sfWidgetFormTime_Sop extends sfWidgetFormTime {

  /**
   * Generates a two chars range
   *
   * @param  int  $start
   * @param  int  $stop
   * @param  int  step
   * @return array
   */
  static public function generateTwoCharsRange($start, $stop, $step=1) {
    $results = array();
    
    for ($i = $start; $i <= $stop; $i += $step)
      $results[$i] = sprintf('%02d', $i);
    
    return $results;
  }

}
